package io.github.talelin.latticy.service.impl;

import io.github.talelin.latticy.dto.rule.chargeDataItem.ChargeDataItemDTO;
import io.github.talelin.latticy.model.ChargeDataItemDO;
import io.github.talelin.latticy.mapper.ChargeDataItemMapper;
import io.github.talelin.latticy.service.ChargeDataItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 计费数据项 服务实现类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-08-26
 */
@Service
public class ChargeDataItemServiceImpl extends ServiceImpl<ChargeDataItemMapper, ChargeDataItemDO> implements ChargeDataItemService {

    @Override
    public boolean addChargeDataItem(ChargeDataItemDTO dto) {
        return this.save(new ChargeDataItemDO(dto));
    }
}
